//
//  MoneyCell.m
//  LNA
//
//  Created by dllo on 16/1/23.
//  Copyright © 2016年 www.lanou3g.com蓝鸥. All rights reserved.
//

#import "MoneyCell.h"

@implementation MoneyCell

- (void)dealloc
{

    [_imgView release];
    [_priceoffLabel release];
    [_priceLabel release];
    [_titleLabel release];
    
    [super dealloc];
}
#pragma mark -  初始化
- (instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _imgView = [[UIImageView alloc] init];
        [self.contentView addSubview:_imgView];
        
        _titleLabel = [[UILabel alloc] init];
        [self.contentView addSubview:_titleLabel];
        
        _priceLabel = [[UILabel alloc] init];
        _priceLabel.textColor = [UIColor redColor];
        _priceLabel.textAlignment = NSTextAlignmentRight;
        [self.contentView addSubview:_priceLabel];
        
        _priceoffLabel = [[UILabel alloc] init];
        [self.contentView addSubview:_priceoffLabel];
        
    }
    return self;
    
    
    
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    _imgView.frame = CGRectMake(10, 5, 100, 80);
    _titleLabel.frame = CGRectMake(130, 10, 230, 40);
    _priceoffLabel.frame = CGRectMake(130, 55, 50, 30);
    _priceLabel.frame = CGRectMake(self.contentView.frame.size.width - 140, 55, 130, 30);
    
    
    
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
